/*
 * @Author: your name
 * @Date: 2021-12-04 19:34:07
 * @LastEditTime: 2021-12-08 17:16:48
 * @LastEditors: your name
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \demo\src\api\area.js
 */
import request from '@/utils/request.js'

/**
 *  获取城市列表
 * @returns
 */
export function getCityList () {
  return request({
    url: '/area/city',
    params: {
      level: '1'
    }
  })
}

/**
 * 获取热门城市列表
 * @returns
 */
export function getHotCityList () {
  return request({
    url: '/area/hot'

  })
}

/**
 * 小区关键词查询
 * @returns
 */
export function getAreaCommunity (params) {
  return request({
    url: '/area/community',
    params
  })
}
